package com.yyjj.zixun.activity;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.aries.ui.view.title.TitleBarView;
import com.yyjj.zixun.R;
import com.yyjj.zixun.ZiXunPath;
import com.yyjj.zixun.fragmnet.GanTouFragment;
import com.yyjj.zixun.fragmnet.HomeZiXunFragment;
import com.yyjj.zixun.fragmnet.ZixunFragment;

import tech.com.commoncore.base.BaseTitleActivity;
import tech.com.commoncore.basecomponent.ServiceFactory;

@Route(path = ZiXunPath.ZIXUN_LIST)
public class MainActivity extends BaseTitleActivity {

    @Override
    public void setTitleBar(TitleBarView titleBar) {
        titleBar.setTitleMainText("基金百科");
    }

    @Override
    public int getContentLayout() {
        return R.layout.zixun_activity_main;
    }

    @Override
    public void initView(Bundle savedInstanceState) {
//        getSupportFragmentManager().beginTransaction().replace(R.id.ll_content, HomeZiXunFragment.newInstance()).commit();
//        getSupportFragmentManager().beginTransaction().replace(R.id.ll_content, ServiceFactory.getInstance().getZixunService().newGanTou(null)).commit();
//        getChildFragmentManager().beginTransaction().replace(R.id.ll_news_list,
//                ServiceFactory.getInstance().getZixunService().newFlashFragment(null)).commit();
    }
}
